package com.whl.pet.service;

import com.whl.basic.util.PageList;
import com.whl.pet.domain.SearchMasterMsg;
import com.whl.basic.service.IBaseService;
import com.whl.pet.dto.MsgDto;
import com.whl.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author whl
 * @since 2022-06-18
 */
public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    // 发布寻主消息
    void publish(SearchMasterMsg searchMasterMsg, HttpServletRequest request);
    // 用户的寻主消息
    PageList<SearchMasterMsg> user(SearchMasterMsgQuery query, HttpServletRequest request);
    // 审核通过待处理的寻主消息
    PageList<SearchMasterMsg> tohandle(SearchMasterMsgQuery query, HttpServletRequest request);
    // 拒单
    void reject(Long msgId);
    // 接单
    void accept(MsgDto msgDto);
}
